package experiments.lm;

import java.util.ArrayList;
import java.util.List;

import similarity.Cosine;

public class VectorLesk {

	public double computeSimilarity(String met1, String met2){
		double totalCos = 0;

		List<String> l1Words = getSimilarWords(met1);
		List<String> l2Words = getSimilarWords(met2);

		List<int[]> l2Vecs = new ArrayList<int[]>();
		for (String word: l2Words){
			l2Vecs.add(str2Vec(word));
		}
		
		for (String word: l1Words){
			int[] vec = str2Vec(word);
			for (int[]  l2Vec : l2Vecs){
				totalCos += Cosine.cosineSimilarity(vec, l2Vec);
			}
		}
		return totalCos;
	}

	
	public int[] str2Vec(String word){
		int[] vec = new int[5];
		return vec;
	}
	
	
	public List<String> getSimilarWords(String word){
		List<String> words = new ArrayList<String>();
		return words;
	}
}
